package cn.iocoder.yudao.module.hs.controller.admin.materiallog.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 物料日志新增/修改 Request VO")
@Data
public class MaterialLogSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "27668")
    private Long id;

    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "11836")
    @NotNull(message = "用户编号不能为空")
    private Long userId;

    @Schema(description = "物料编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "9454")
    @NotNull(message = "物料编号不能为空")
    private Long materialId;

    @Schema(description = "物料名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "9454")
    @NotEmpty(message = "'物料名称不能为空")
    private String materialName;

    @Schema(description = "产品码", requiredMode = Schema.RequiredMode.REQUIRED, example = "9454")
    @NotEmpty(message = "'产品码不能为空")
    private String materialCode;

    @Schema(description = "物料代码", requiredMode = Schema.RequiredMode.REQUIRED, example = "9454")
    @NotEmpty(message = "'物料代码不能为空")
    private String materialModeCode;

    @Schema(description = "操作类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "操作类型不能为空")
    private Integer operateType;

    @Schema(description = "操作内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "操作内容不能为空")
    private String content;

}